package hl.demosample.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import hl.demosample.R
import hl.demosample.app.ext.setAdapterAnimation
import hl.demosample.app.util.SettingUtil

/*
* path: DemoSample 
* Author: 86133
* Create: 2021-06-02 17:05
* Changes (from 2021-06-02)
* Desc:
*/
class PopWindowAdapter (layoutRestId: Int) : BaseQuickAdapter<String, BaseViewHolder>(layoutRestId){

    init {
        setAdapterAnimation(SettingUtil.getListMode())
    }

    override fun convert(holder: BaseViewHolder, item: String) {
        item.run {
            holder.setText(R.id.tv, item)
        }
    }
}